/* ** Drop one or all the associated properties of an object or an attribute ** ** dt_dropproperties objid, null or '' -- drop all properties of the object itself ** dt_dropproperties objid, property -- drop the property */ createproceduredbo.dt_droppropertiesbyid @idint, @propertyvarchar(64) as setnocounton
if(@propertyisnull)or(@property='') deletefromdbo.dtpropertieswhereobjectid=@id else deletefromdbo.dtproperties whereobjectid=@idandproperty=@property GO GRANTEXECUTEON[dbo].[dt_droppropertiesbyid]TO[public] GO